package com.financial.service.platbalancepay.connector;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @anthor wenguoqiang
 * @date: 2019/02/20 16:03
 * @company 够样
 * @des
 **/
@Service
@FeignClient(name = "financial-service-ys")
public interface YspayFegin {

    /**
     * @Author zhaopengjun
     * @Description //银盛微信小程序支付
     * @Date 18:17 2019/8/20
     * @Param [fileUuid]
     * @return java.lang.String
     **/
    //优惠买单-平台余额支付-银盛小程序支付
    @PostMapping(value = "/ysWeChatPay/miniAppPay")
    Map<String,Object> miniAppPay(@RequestParam Map<String,Object> paramMap);

    /**
     * @Author zhaopengjun
     * @Description //优惠买单-平台余额支付-银盛小程序支付(异步)
     * @Date 9:45 2019/8/21
     * @Param [paramMap, response]
     * @return void
     **/
    @RequestMapping(value = "/ysWeChatPay/miniAppCallBack",method = RequestMethod.POST)
    void miniAppCallBack(@RequestParam Map<String,String> paramMap, HttpServletResponse response);

    /**
     * @Author zhaopengjun
     * @Description //查询微信小程序订单支付
     * @Date 18:30 2019/8/21
     * @Param
     * @return
     **/
    @RequestMapping(value = "/ysWeChatPayQuery/ysPayQuery",method = RequestMethod.POST)
    Map<String,Object> ysPayQuery(@RequestParam Map<String,String> reqparam);

    /**
     *  银盛代付接口
     * @param mapParams
     * @return
     */
    @RequestMapping(value = "/ysPayment/payment",method = RequestMethod.POST)
    Map<String, Object> transferAccounts(@RequestParam Map<String,Object> mapParams);

    /**
     * 银盛代付查询
     */
    @RequestMapping(value = "/ysPayment/paymentQuery",method = RequestMethod.POST)
    Map<String,Object> paymentQuery ( @RequestParam Map<String, Object> mapParams);
}
